4 5 3
0 1 1 0 1
1 0 1 1 0
1 1 0 0 0
0 0 0 1 1
1 3 4 5 6
1 3 4